package com.spring.cloud.provide.service.impl;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.spring.cloud.provide.service.ProvideService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class ProvideServiceImpl implements ProvideService {
    public Logger log = LoggerFactory.getLogger(this.getClass());
    @Override
    public String ribbon(String name) {
        return "from provide 8602: "+name;
    }


    @Override
    public String hystrix(String name) {
        log.info("from provide turbineError......");
        return "turbineError:"+name;
    }

}
